<?php

/*

appID
wxae6633c14cc43163
appsecret
9a8acba52d547f00ed6824f1a1d9ed2d

http://yc9a3i.natappfree.cc/suifeng-tp-admin/wx_sample.php

http://yc9a3i.natappfree.cc/suifeng-tp-admin/oauth.php
http%3a%2f%2fyc9a3i.natappfree.cc%2fsuifeng-tp-admin%2foauth.php

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxae6633c14cc43163&redirect_uri=http%3a%2f%2fyc9a3i.natappfree.cc%2fsuifeng-tp-admin%2foauth.php&response_type=code&scope=snsapi_userinfo&state=123456#wechat_redirect


https://api.weixin.qq.com/sns/oauth2/access_token?appid=wxae6633c14cc43163&secret=9a8acba52d547f00ed6824f1a1d9ed2d&code=081Ew2b10Vr6OF1mNo910XESa10Ew2bs&grant_type=authorization_code



access_token
6_ZEPHNlSvsoZywOH-P0l8EhVkgKwPaEFCTTm7IJ1a9NU1YCt4Ys2GYZa-C-2575yMSdlJ4k6gfnN9fOOnZz3N1zS9KJeeZuSNUtv1RlhCjx0
expires_in
7200
openid
oNXJ-wUa-Q4zxbZznJivC1K4rZbw
refresh_token
"6_cyNwfHKIA6zozUeVMVi1EM12_Tvx-Mo9dPCyGJF85hH-b066C0iPpv4lAtUNz1XGs-ZQp-JRFBOtYBYYpIU7lQkq4WL-sPVAX_e9qEttalc"
scope
"snsapi_userinfo"

https://api.weixin.qq.com/sns/userinfo?access_token=6_ZEPHNlSvsoZywOH-P0l8EhVkgKwPaEFCTTm7IJ1a9NU1YCt4Ys2GYZa-C-2575yMSdlJ4k6gfnN9fOOnZz3N1zS9KJeeZuSNUtv1RlhCjx0&openid=oNXJ-wUa-Q4zxbZznJivC1K4rZbw



*/


if (isset($_GET['code'])){
    echo $_GET['code'];
}else{
    echo "NO CODE";
}
?>